<?php
/**
 * Created by PhpStorm.
 * User: dubin
 * Date: 2016/12/18
 * Time: 13:32
 */
namespace App\Repositories\Eloquent;

use App\Repositories\Eloquent\Repository;
use App\User;

class UserRepository extends Repository{
    public function model()
    {
        return User::class;
        // TODO: Implement model() method.
    }

    public function findBy($id)
    {
        return $this->model->where('id',$id)->first()->toArray();
    }
}